Skip to content

Harden Docker workflow against transient Buildx bootstrap timeouts#3

Merged
stijnwtf merged 4 commits into
realm/developfrom
copilot/fix-github-actions-build-linux-amd64
Jun 8, 2026
Merged

Harden Docker workflow against transient Buildx bootstrap timeouts#3
stijnwtf merged 4 commits into
realm/developfrom
copilot/fix-github-actions-build-linux-amd64

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Build (linux/amd64) was failing before any image build work due to intermittent timeouts while docker/setup-buildx-action bootstrapped BuildKit from Docker Hub. This change makes Buildx setup resilient to one transient failure without changing normal-path behavior.

  • Root cause addressed

    • Setup Docker buildx could fail on a single network/auth timeout to Docker Hub (moby/buildkit:buildx-stable-1 pull path), causing the whole job to abort early.
  • Workflow reliability changes

    • In .github/workflows/docker.yaml, both build and merge jobs now:
      • run an initial Buildx setup step with continue-on-error: true
      • run a second setup attempt only if the first attempt failed
    • Retains existing skip gating (env.SKIP != 'true') so retry logic only applies when the job is intended to run.
  • Behavioral impact

    • No change on successful first attempt.
    • Single transient Buildx bootstrap failure no longer fails the job immediately.
- name: Setup Docker buildx
  if: env.SKIP != 'true'
  id: setup-buildx
  uses: docker/setup-buildx-action@v3
  continue-on-error: true

- name: Retry setup Docker buildx
  if: env.SKIP != 'true' && steps.setup-buildx.outcome == 'failure'
  uses: docker/setup-buildx-action@v3

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build (linux/amd64) Harden Docker workflow against transient Buildx bootstrap timeouts Jun 8, 2026
Copilot AI requested a review from stijnwtf June 8, 2026 18:23
@stijnwtf
stijnwtf marked this pull request as ready for review June 8, 2026 18:27
Copilot AI review requested due to automatic review settings June 8, 2026 18:27
@stijnwtf
stijnwtf merged commit 3cd4174 into realm/develop Jun 8, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the Docker GitHub Actions workflow against intermittent docker/setup-buildx-action bootstrap failures (e.g., transient Docker Hub pull/auth timeouts) by adding a single retry path while preserving the normal success behavior.

Changes:

  • Adds an initial docker/setup-buildx-action@v3 step with continue-on-error: true and a step id to capture its outcome.
  • Adds a second “retry” Buildx setup step that runs only when the first attempt fails (and only when env.SKIP != 'true').

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants